package chixing.day16.class23;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

public class Record {
    private String transactionNumber;
    private String userName;
    private String institutionNumber;
    private char userGengder;
    private  String flowingWaterNumber;
    private LocalDateTime transactionDate;
    private  double transactionAmount;

    public Record() {
    }

    public Record(String transactionNumber, String userName, String institutionNumber, char userGengder, String flowingWaterNumber, LocalDateTime transactionDate, double transactionAmount) {
        this.transactionNumber = transactionNumber;
        this.userName = userName;
        this.institutionNumber = institutionNumber;
        this.userGengder = userGengder;
        this.flowingWaterNumber = flowingWaterNumber;
        this.transactionDate = transactionDate;
        this.transactionAmount = transactionAmount;
    }

    public String getTransactionNumber() {
        return transactionNumber;
    }

    public void setTransactionNumber(String transactionNumber) {
        this.transactionNumber = transactionNumber;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public char getUserGengder() {
        return userGengder;
    }

    public void setUserGengder(char userGengder) {
        this.userGengder = userGengder;
    }

    public String getInstitutionNumber() {
        return institutionNumber;
    }

    public void setInstitutionNumber(String institutionNumber) {
        this.institutionNumber = institutionNumber;
    }


    public String getFlowingWaterNumber() {
        return flowingWaterNumber;
    }

    public void setFlowingWaterNumber(String flowingWaterNumber) {
        this.flowingWaterNumber = flowingWaterNumber;
    }

    public LocalDateTime getTransactionDate() {
        return transactionDate;
    }

    public void setTransactionDate(LocalDateTime transactionDate) {
        this.transactionDate = transactionDate;
    }

    public double getTransactionAmount() {
        return transactionAmount;
    }

    public void setTransactionAmount(double transactionAmount) {
        this.transactionAmount = transactionAmount;
    }

    @Override
    public String toString() {
        return "Record{" +
                "transactionNumber='" + transactionNumber + '\'' +
                ", userName='" + userName + '\'' +
                ", institutionNumber='" + institutionNumber + '\'' +
                ", userGengder=" + userGengder +
                ", flowingWaterNumber='" + flowingWaterNumber + '\'' +
                ", transactionDate=" + transactionDate +
                ", transactionAmount=" + transactionAmount +
                '}';
    }
}

